package com.wish.risk.domain;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;


/**
 * <p>
 * 
 * </p>
 *
 * @author wangzhong
 * @since 2018-07-23
 */
@lombok.Setter
@lombok.Getter
@lombok.ToString
@TableName("t_fk_business_credit_sub")
public class FkBusinessCreditSubEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 关联t_fk_business_credit
     */
    @TableField("credit_id")
    private Long creditId;

    /**
     * 资金方id，关联t_m_capital表
     */
    @TableField("capital_id")
    private Long capitalId;

    /**
     * 产品id，关联t_jr_product，取产品的授信额度
     */
    @TableField("product_id")
    private Long productId;

    /**
     * 总授信额度
     */
    @TableField("total_creditline")
    private BigDecimal totalCreditline;

    /**
     * 已用授信额度
     */
    @TableField("used_creditline")
    private BigDecimal usedCreditline;

    /**
     * 月度授信额度
     */
    @TableField("monthly_total_creditline")
    private BigDecimal monthlyTotalCreditline;

    /**
     * 月度已用授信额度
     */
    @TableField("monthly_used_creditline")
    private BigDecimal monthlyUsedCreditline;

    /**
     * 应花分期使用(资金方识别码)
     */
    private String appid;
    
    /**
     * 预留字段1
     */
    private BigDecimal reserve1;

    /**
     * 预留字段2
     */
    private Integer reserve2;

    /**
     * 预留字段3
     */
    private String reserve3;

    /**
     * 预留字段4
     */
    private String reserve4;

    /**
     * 预留字段5
     */
    private String reserve5;

    /**
     * 删除标识   0：未删除、1：删除
     */
    @TableField("del_flg")
    private Boolean delFlg;

    /**
     * 创建用户id
     */
    @TableField("create_userid")
    private Long createUserid;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 更新用户id
     */
    @TableField("update_userid")
    private Long updateUserid;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;


}
